'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  const islogin = app.middleware.islogin({},app);
  router.get('/', controller.home.index);
  router.get('/ciku',controller.home.ciku);
  router.get('/ketang',controller.home.ketang);
  router.get('/ketang1',controller.home.ketang1);
  router.get('/youxi',controller.home.youxi);
  router.get('/login',controller.home.login);
  router.get('/register',controller.home.register);
  router.get('/me',islogin,controller.home.me);
  router.post('/zhuce',controller.home.zhuce);
  router.post('/denglu',controller.home.denglu);
  router.post('/fabu',controller.home.fabu);
  router.get('/tui',controller.home.tui);
};
